<!--
 * @Author: your name
 * @Date: 2021-07-02 15:03:09
 * @LastEditTime: 2021-07-02 15:17:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /shop-demo/src/components/Home.vue
-->
<template>
  <div>
    <el-button
      type="primary"
      @click="logout"
    >退出</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    logout () {
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style>
</style>
